package cn.gson.springboot.model.pjos;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * 客户关怀表
 */
@Entity
@Table(name = "customer_care", schema = "springboot", catalog = "")
public class CustomerCare {
    private int careId;                 //客户关怀id
    private String careSubject;	        //关怀主题
    private String careLink;	        //联系人
    private Timestamp careDate;	        //日期
    private String careEnroll;          //所有人
    private String careType;	        //类型
    private String careContent;	        //关怀内容
    private String careTick;	        //客户反馈
    private String careRemark;	        //备注
    private Integer careDelete;         //删除
    private Customer customerByCustomId;
    private Emp empByEmployeesId;       //执行人

    public CustomerCare() {

    }

    @Id
    @Column(name = "care_id")
    public int getCareId() {
        return careId;
    }

    public void setCareId(int careId) {
        this.careId = careId;
    }

    @Basic
    @Column(name = "care_subject")
    public String getCareSubject() {
        return careSubject;
    }

    public void setCareSubject(String careSubject) {
        this.careSubject = careSubject;
    }

    @Basic
    @Column(name = "care_link")
    public String getCareLink() {
        return careLink;
    }

    public void setCareLink(String careLink) {
        this.careLink = careLink;
    }

    @Basic
    @Column(name = "care_date")
    public Timestamp getCareDate() {
        return careDate;
    }

    public void setCareDate(Timestamp careDate) {
        this.careDate = careDate;
    }

    @Basic
    @Column(name = "care_enroll")
    public String getCareEnroll() {
        return careEnroll;
    }

    public void setCareEnroll(String careEnroll) {
        this.careEnroll = careEnroll;
    }

    @Basic
    @Column(name = "care_type")
    public String getCareType() {
        return careType;
    }

    public void setCareType(String careType) {
        this.careType = careType;
    }

    @Basic
    @Column(name = "care_content")
    public String getCareContent() {
        return careContent;
    }

    public void setCareContent(String careContent) {
        this.careContent = careContent;
    }

    @Basic
    @Column(name = "care_tick")
    public String getCareTick() {
        return careTick;
    }

    public void setCareTick(String careTick) {
        this.careTick = careTick;
    }

    @Basic
    @Column(name = "care_remark")
    public String getCareRemark() {
        return careRemark;
    }

    public void setCareRemark(String careRemark) {
        this.careRemark = careRemark;
    }

    @Basic
    @Column(name = "care_delete")
    public Integer getCareDelete() {
        return careDelete;
    }

    public void setCareDelete(Integer careDelete) {
        this.careDelete = careDelete;
    }

    @ManyToOne
    @JoinColumn(name = "custom_id", referencedColumnName = "custom_id")
    public Customer getCustomerByCustomId() {
        return customerByCustomId;
    }

    public void setCustomerByCustomId(Customer customerByCustomId) {
        this.customerByCustomId = customerByCustomId;
    }

    @ManyToOne
    @JoinColumn(name = "employees_id", referencedColumnName = "employees_id")
    public Emp getEmpByEmployeesId() {
        return empByEmployeesId;
    }

    public void setEmpByEmployeesId(Emp empByEmployeesId) {
        this.empByEmployeesId = empByEmployeesId;
    }

}
